# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson vala systemd

DESCRIPTION="A neat notification daemon"
HOMEPAGE="https://github.com/misterdanb/avizo"
SRC_URI="mirror://github/misterdanb/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE=""

RDEPEND="dev-libs/wayland"
BDEPEND="${RDEPEND}
         virtual/pkgconfig
         dev-libs/wayland-protocols
         $(vala_depend)"

src_configure() {
	vala_setup
	meson_src_configure
}

src_install() {
	default
	systemd_douserunit "${FILESDIR}"/${PN}.service
}
